﻿using Student.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Student
{
    public partial class DaKaChaXun : Form
    {
        public DaKaChaXun()
        {
            InitializeComponent();
            List<DaKa1> list = new List<DaKa1>();
            try
            {
                list = Student.Tools.SaveData.QuData("DaKa.txt") as List<DaKa1>;
            }
            catch (Exception e)
            {

                Console.WriteLine(e.Message);
            }
            this.dataGridView2.AutoGenerateColumns = false;
            this.dataGridView2.DataSource = list;


        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void DaKaChaXun_Load(object sender, EventArgs e)
        {

        }
    }
}
